package com.foreknow.practice.lala;

import java.util.Scanner;

public class OOPArray {
    public static void main(String[] args) {
//        Employee[] employees = new Employee[5];
////        Employee e1 = new Employee();
////        e1.setName("1");
////        Employee e2 = new Employee();
////        e2.setName("22");
////
////        employees[0]=e1;
////        employees[1]=e2;
////        Employee emp  =employees[1];
////        emp.getName();
////        System.out.println( emp.getName());

        Scanner input = new Scanner(System.in);
        Employee[] employee =new Employee[3];
        for (int i=1;i<3;i++){
            Employee e = new Employee();
            System.out.println("编号");
            int card =input.nextInt();
            e.setCard(card);
            employee[i]=e;

        }
        for (int i =0;i<employee.length;i++){
            Employee s=employee[i];
            s.getName();
            System.out.println();
        }
    }



}
